/*
 * Copyright 2019, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.example.android.marsrealestate.network

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

data class MarsProperty(
        val id: String,
        @Json(name = "img_src") val img_src: String,
        val type: String,
        val price: Double,
)


@JsonClass(generateAdapter = true)
data class Activity (
        val activityAddress: String?,
        val activityEndTime: String?,
        val activityId: String?,
        val activityImg: String?,
        val activityLabel: String?,
        val activityMaxPeople: Int?,
        val activityMoney: String?,
        val activityStartTime: String?,
        val activityTitle: String?,
        val activityType: Int?,
        val avatar: List<String>?= emptyList(),
        val goods: List<Good>?= emptyList(),
)

@JsonClass(generateAdapter = true)
data class Good(
    val actId: String?,
    val createTime: String?,
    val goodsId: String?,
    val goodsLimit: Int?,
    val goodsPrice: Double?,
    val id: String?,
    val isDel: Int?,
    val updateTime: Any?
)
